const plugins = [
  '@babel/plugin-proposal-optional-chaining',
  [
    'import',
    {
      libraryName: 'vant',
      libraryDirectory: 'es',
      style: true,
    },
    'vuiVant',
  ],
]
console.log('process.env.BuildProject', process.env.BuildProject)
// if (process.env.NODE_ENV === 'production' && process.env.BuildProject === 'pda') {
//   plugins.push('transform-remove-console')
// }

module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  plugins: plugins,
}
